package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 控制手机机型
 * </p>
 *
 * @author kutty
 * @since 2018-12-24
 */
@TableName("phone_model")
public class PhoneModel extends Model<PhoneModel> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 渠道ID
     */
    private String cpid;
    /**
     * 机型名称
     */
    @TableField("model_name")
    private String modelName;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private Date addTime;
    /**
     * 是否使用
     */
    @TableField("is_use")
    private String isUse;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCpid() {
        return cpid;
    }

    public void setCpid(String cpid) {
        this.cpid = cpid;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getIsUse() {
        return isUse;
    }

    public void setIsUse(String isUse) {
        this.isUse = isUse;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PhoneModel{" +
        "id=" + id +
        ", cpid=" + cpid +
        ", modelName=" + modelName +
        ", addTime=" + addTime +
        ", isUse=" + isUse +
        "}";
    }
}
